﻿@inherits BaseValidationSummary
@if ( !HasCustomRegistration )
{
    @if ( ParentValidation?.Status == ValidationStatus.Error )
    {
        <div class="@ClassNames" style="@StyleNames" @attributes="@Attributes">
            @if ( ErrorText != null )
            {
                @ErrorText
            }
            else
            {
                @ChildContent
            }
        </div>
    }
}
else
{
    @RenderCustomComponent()
}